import api from "@/api/axiosApi"

const user = {
    userInfo(url,params){//分页，搜索，查询全部用户数据
        return api.get(url,params)
    },
	queryUserName(url,params){
	    return api.get(url,params)
	},
	addUser(url,params){
	    return api.post(url,params)
	},
	editorUser(url,params){
	    return api.put(url,params)
	},
	deleteUser(url,params){
	    return api.del(url,params)
	},
	editInformation(url,params){//修改个人信息
	    return api.put(url,params)
	},
	changePassword(url,params){//修改密码
		return api.put(url,params)
	},
	toDisable(url,params){//修改状态
		return api.post(url,params)
	},
	resetPasswords(url,params){//重置密码
		return api.post(url,params)
	}

}

export default user;